import 'package:dio/dio.dart';
import 'package:flutter_getx/app/util/dio/dio_config.dart';
import 'package:flutter_getx/app/util/dio/interceptors/response_interceptor.dart';

class AppDio {

  static Dio getDioInstance() {
    var instance = Dio();
    instance.options = BaseOptions(baseUrl: DioConfig.baseUrl);

    instance.interceptors.add(ResponseInterceptor());

    return instance;
  }
}
